//
//  NGSScoreListBoard.h
//  demo_3
//
//  Created by 才 陈 on 12-2-28.
//  Copyright 2012年 sjtu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "BowlOfNooldModelLayer.h"
#import "commons.h"
#import "NGSUtils.h"
#import "NGSNoodle.h"

#define POPPING_LAYER_WIDTH 300
#define POPPING_LAYER_HEIGHT 450
#define POPPING_LAYER_PADDING 5
#define BUTTON_WIDTH 50
#define BUTTON_HEIGHT 30

#define SCORE_TITLE_LABEL_HEIGHT 30
#define SCORE_ITEM_TITLE_FONT_SIZE 16
#define SCORE_ITEM_TITLE_WIDTH SCORE_ITEM_TITLE_FONT_SIZE*7
#define SCORE_ITEM_HEIGHT SCORE_BOARD_BOWL_SCALING*BOWL_HEIHT
#define SCORE_ITEM_GAP 5
#define SCORE_BOARD_BOWL_WIDTH BOWL_WIDTH*SCORE_BOARD_BOWL_SCALING
#define SCORE_ITEM_MULTIPLE_SIGN_WIDTH MULTIPLE_SIGN*SCORE_BOARD_BOWL_SCALING

#define SCORE_LIST_BOARD_COMMENT_FONT_SIZE 30
#define SCORE_TOTAL_FONT_SIZE 20

@interface NGSScoreListBoard : CCLayerColor {
@private
    NSString *title;
    int SCREEN_WIDTH;
    int SCREEN_HEIGHT;
    NSMutableArray *noodles;
    CCSprite *retryMenu;
    CCSprite *quitMenu;
    CGPoint boundaryLineStartPoint;
    CGPoint boundaryLineEndPoint;
}

+(id) scene;
-(id) init;

-(int) addScoreGeneral:(int)generalStartY;
-(int) addScoreList:(int)listStartY;
-(void) addScoreItem:(NGSNoodle *)noodleType startFrom:(int)posY;
-(int) addScoreDetail:(int)detailStartY;
-(int) addComment:(int)commentStartY;
-(int) addMenus:(int)menuStartY;
//-(void) setVisible1:(BOOL)visible;

//when the touch operation happen it calls for this function
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event;
//when you touch the device and move it calls for this function
-(void)ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event;
//when your move finish and your finger leave behind the device it calls for the function
-(void)ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event;
@end
